
local Tube = require'entities.tube'

WastePipe = {}
WastePipe.mt = { __index = WastePipe }
setmetatable(WastePipe, Tube.mt)

function WastePipe.initialize(kind, x, y, transform, layer)


	local WASTEPIPE_t = Tube.new('waste_tubes', nil, x, y, transform, layer)
	setmetatable(WASTEPIPE_t, WastePipe.mt)


	WASTEPIPE_t.tile_grid:setTile(1, 1, kind)
	WASTEPIPE_t.health = WASTEPIPE_t.health * WASTE_PIPE_HEALTH_MOD
	WASTEPIPE_t.dmg_rate =  WASTEPIPE_t.dmg_rate/WASTE_PIPE_HEALTH_MOD

	return WASTEPIPE_t

end


function WastePipe.new(kind, x, y, transform, layer)

	local o = WastePipe.initialize(kind, x, y, transform, layer)

	return o

end



return WastePipe